package org.career.pdung.DAO;

import java.util.List;

import org.career.pdung.domain.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface UserDAO {
	List<User> getAll();
	User get( Integer id );
	void add(User person);
	void delete(Integer id);
	void edit(User person);
	List<User> getUserByEmail(String email);
	UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
	User getUserByFacebookId(String facebookId);
	User getUserByTwitterId(String twitterId);
	User getUserByLinkedinId(String linkedinId);
}
